package org.freespace.service.impl;

import org.freespace.mapper.JmxPluginMapper;
import org.freespace.model.JmxPlugin;
import org.freespace.model.JmxScriptPlugin;
import org.freespace.mapper.JmxScriptPluginMapper;
import org.freespace.service.IJmxScriptPluginService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * jmx脚本绑定的插件关系表 服务实现类
 * </p>
 *
 * @author liuqi
 * @since 2023-05-25
 */
@Service
public class JmxScriptPluginServiceImpl extends ServiceImpl<JmxScriptPluginMapper, JmxScriptPlugin> implements IJmxScriptPluginService {
    @Autowired
    JmxPluginMapper pluginMapper;

    @Override
    public List<JmxPlugin> getScriptPluginsByScriptId(Integer scriptId) {
        return pluginMapper.getScriptPluginsByScriptId(scriptId);
    }
}
